package com.letv.business.flow.album;

import android.content.Context;
import android.os.Bundle;

import com.letv.core.constant.PlayConstant;
import com.letv.core.utils.LogInfo;

/**
 * 点播流程工具类
 *
 * @author zhuqiao
 */
public class AlbumFlowUtils {

    /**
     * 获取播放流程
     *
     * @param context
     * @param launchMode
     * @return
     */
    public static AlbumPlayFlow getPlayFlow(Context context, int launchMode, Bundle bundle) {
        LogInfo.log("sguotao", "launchMode:" + launchMode);
        if (launchMode == PlayConstant.LAUNCH_MODE_URI) {
            return new AlbumPlayFlow(context, PlayConstant.PLAY_DEFAULT, bundle);
        } else if (launchMode == PlayConstant.LAUNCH_MODE_ALBUM) {
            return new AlbumPlayFlow(context, PlayConstant.PLAY_ALBUM, bundle);
        } else if (launchMode == PlayConstant.LAUNCH_MODE_VIDEO) {
            return new AlbumPlayFlow(context, PlayConstant.PLAY_VIDEO, bundle);
        } else if (launchMode == PlayConstant.LAUNCH_MODE_DOWNLOAD) {
            return new AlbumDownloadFlow(context, PlayConstant.PLAY_DOWNLOAD, bundle);
        }
//        else if (launchMode == PlayConstant.LAUNCH_MODE_TOPIC_ALBUM) {
//            return new AlbumPlayTopicFlow(context, PlayConstant.PLAY_TOPIC_ALBUM, bundle);
//        } else if (launchMode == PlayConstant.LAUNCH_MODE_TOPIC_VIDEO) {
//            return new AlbumPlayTopicFlow(context, PlayConstant.PLAY_TOPIC_VIDEO, bundle);
//        }

        return null;
    }
}
